#include "GameMain.h"

void homeCommand::init()
{
	GameMain::sharedGameMain()->getBgLayer()->setBg("map.tmx");

	for(int i = 0; i < 10; i++)
	{
		buildMediator *view = buildMediator::initCreate();
		buildModel *model = new buildModel();
		model->setId(i);
		model->setCurrentX(25);
		model->setCurrentY(25 + i * 2);
		model->setLevel(1);
		model->setAttack(10);
		model->setCrit(1);
		model->setCurrentLife(100);
		model->setMaxLife(100);
		model->setDefense(1);
		model->setRange(1);
		model->setComFlag(true);
		view->setModel(model);
		GameDataViewManager::sharedGameDataViewManager()->addBuild(view);
	}
}